
#ifndef _ATTRIBMANAGER
#define _ATTRIBMANAGER

#include "attribprototype.h"
#include "attribute.h"
#include <map>
#include <vector>
using namespace std;

class AttribManager
{
public:
  AttribManager();
  int getNumberOfPrototypes();
  string getPrototypeNameByIndex( int _index );
  string createAttributeFromPrototype( int _index );
  Attribute* getAttributeByName( string _name );
protected:
private:
  vector<AttribPrototype*> m_prototypes;
  map<string,vector<Attribute*> > m_attributes;
};


#endif
